﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model.RolePopedom
{
    /// <summary>
    /// 模块与权限组合
    /// </summary>
    public class ModulePermission
    {
        /// <summary>
        /// 管理员管理
        /// </summary>
        [Category("管理员管理")]
        [Description("管理员管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Pass)]
        public int Admin=1001;

        /// <summary>
        /// 角色管理
        /// </summary>
        [Category("角色管理")]
        [Description("角色管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Role = 1004;

        /// <summary>
        /// 网站设置
        /// </summary>
        [Category("网站设置")]
        [Description("网站设置")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update)]
        public int WebSite = 1005;

        /// <summary>
        /// SEO管理
        /// </summary>
        [Category("SEO管理")]
        [Description("SEO管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Enabled)]
        public int SEO = 1006;

        /// <summary>
        /// 全文关键词管理
        /// </summary>
        [Category("全文关键词管理")]
        [Description("全文关键词管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Enabled | PermissionEnum.NewWindow)]
        public int KeyWord = 1007;

        /// <summary>
        /// QQ/MSN管理
        /// </summary>
        [Category("QQ/MSN管理")]
        [Description("QQ/MSN管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Enabled)]
        public int QQMSN = 1008;

        /// <summary>
        /// 后台日志管理
        /// </summary>
        [Category("后台日志管理")]
        [Description("后台日志管理")]
        [PermissionOption(PermissionEnum.Select)]
        public int AdminLog = 1009;

        /// <summary>
        /// 会员管理
        /// </summary>
        [Category("会员管理")]
        [Description("会员管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Pass)]
        public int User = 1010;

        /// <summary>
        /// 类型管理
        /// </summary>
        [Category("类型管理")]
        [Description("类型管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Pass)]
        public int Classification = 1011;
        
        /// <summary>
        /// 色系管理
        /// </summary>
        [Category("色系管理")]
        [Description("色系管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Pass)]
        public int Color = 1012;
        
        /// <summary>
        /// 感情管理
        /// </summary>
        [Category("感情管理")]
        [Description("感情管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Feelings = 1013;

        /// <summary>
        /// 页面设置管理
        /// </summary>
        [Category("页面设置管理")]
        [Description("页面设置管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int PageSetup = 1014;
        
        /// <summary>
        /// 图片管理
        /// </summary>
        [Category("图片管理")]
        [Description("图片管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Img = 1015;
        
        /// <summary>
        /// 举报管理
        /// </summary>
        [Category("举报管理")]
        [Description("举报管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete)]
        public int Report = 1016;

        /// <summary>
        /// 音乐类型管理
        /// </summary>
        [Category("音乐类型管理")]
        [Description("音乐类型管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Insert | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Pass)]
        public int MusicType = 1017;
        
        /// <summary>
        /// 音乐管理
        /// </summary>
        [Category("音乐管理")]
        [Description("音乐管理")]
        [PermissionOption(PermissionEnum.Select | PermissionEnum.Update | PermissionEnum.Delete | PermissionEnum.Pass)]
        public int Music = 1018;
    }
}
